package com.lujieni.dbsharding.simple.dao;


import com.lujieni.dbsharding.simple.po.OrderPO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Repository
public interface OrderDao extends Mapper<OrderPO> {



     /**
      * 根据id列表查询订单
      * @return
      */
     List<Map> selectOrderByIdAndUserId(@Param("ids") List<Long> ids,@Param("userId") Long userId);

     /**
      * 根据userId列表查询订单
      * @return
      */
     List<Map> selectOrderByUserId(@Param("userIds") List<Long> userIds);

     /**
      * 对分片键使用betweetn进行查询
      * @return
      */
     List<Map> selectOrderByUserIdUseBetween();


}
